﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cqrs.StateMachineDesigner.CustomCode;

namespace Cqrs.StateMachineDesigner.Generator
{
    public partial class DomainClass
    {
        private GeneratorModel _generatorModel;
        private string _methodParameters = "";
        private string _eventParameters = "";
        private string _ctorParameters = "";
        private string _ctorEventParameters = "";
        public DomainClass(GeneratorModel generatorModel)
        {
            _generatorModel = generatorModel;
        }

        public string CtorEventName
        {
            get
            {
                return FormatUtils.RemoveNonAlphaChars(
                    _generatorModel.CommandEventModel.Where(p => p.CreatesInitialState).First().EventName);
            }
        }
    }
}
